public class Student {
    private String stuNo;
    private String stuName;
    private String gender;
    private int age;

    public Student(){

    }

    public Student(String a,String b,String c,int d){
        this.stuNo=a;
        this.stuName=b;
        this.gender=c;
        this.age=d;
    }

    private void setters(String a,String b,String c,int d){
        this.stuNo=a;
        this.stuName=b;
        this.gender=c;
        this.age=d;
    }
    public  String getterStuNo(){
    return this.stuNo;
    }

    public String toString(){
        return "学号:"+stuNo+"姓名:"+stuName+"性别:"+gender+"年龄："+age;
    }

    public boolean equals(Student stu1){
        if(stu1==null){
            return false;
        }
        if(stu1.stuNo==this.stuNo){
            return true;
        }else{
            return false;
        }
    }
}